package com.qf.flash.http.response;

import android.text.TextUtils;

import com.qf.dblib.dao.entity.UserInfo;

import java.io.Serializable;
import java.util.ArrayList;

/**
 * 描述:
 * 2020/3/24 14:24
 */
public class GameDetailResponse implements Serializable {

    /**
     * id : 2557d7c55fa54f249d061a49ea2ab15b
     * createDate : 2020-02-28 16:25
     * userId : 10112
     * teamName : 狼人杀团队1
     * orderNumber : GM000590341560
     * shopId :
     * restFee : 0
     * playType : 3
     * playId :
     * playName :
     * playImage :
     * needNum : 5
     * gamePassword : 123
     * orderState : 1
     * orderStateName : 待组队
     * orderTip : 此订单未完成组队
     * isFree : 0
     * mvpUser :
     * yqUser :
     * zhUser :
     * yzUser :
     * isSetRest : 0
     * emchatId :
     * typeName : 狼人杀
     * captainName : 测试号
     * shop : {"id":"","name":"","mobile":"","userType":"","photo":"","sex":"","level":"","shopName":"","logo":"","location":""}
     * validShop : 0
     * users : [{"id":"10112","name":"测试号","mobile":"17708492266","userType":"2","photo":"https://shandian.hnqinghuang.com/game/play/1.jpg","sex":"1","level":1,"isRestMoney":0,"restMoney":0,"userRelate":0}]
     * isRestMoney : 0
     * isSign : 0
     * responsePlay : 0
     * responseShop : 0
     * isNeedPlay : 0
     * payedNum : 1
     * isCanShopFun : 0
     * tags : []
     */

    private String id;
    private String createDate;
    private String userId;
    private String teamName;
    private String orderNumber;
    private String shopId;
    private double restFee;
    private String playType;
    private String playId;
    private String playName;
    private String playImage;
    private String playDesc;
    private String gameTime;
    private int needNum;
    private double downpayment;
    private String gamePassword;
    private String orderState;
    private String orderStateName;
    private String orderTip;
    private String isFree;
    private String mvpUser;
    private String yqUser;
    private String zhUser;
    private String yzUser;
    private int isSetRest;
    private String emchatId;
    private String typeName;
    private String captainName;
    private ShopBean shop;
    private int validShop;
    private int isRestMoney;
    private int isSign;
    private int responsePlay;
    private int responseShop;
    private int isNeedPlay;
    private int payedNum;
    private int isCanShopFun;
    private ArrayList<UsersBean> users;
    private float playScole;
    private long playCount;

    public double getDownpayment() {
        return downpayment;
    }

    public void setDownpayment(double downpayment) {
        this.downpayment = downpayment;
    }

    public float getPlayScole() {
        return playScole;
    }

    public void setPlayScole(float playScole) {
        this.playScole = playScole;
    }

    public long getPlayCount() {
        return playCount;
    }

    public void setPlayCount(long playCount) {
        this.playCount = playCount;
    }

    public ArrayList<UsersBean> getUsers() {
        if (users == null)
            return new ArrayList<>();
        return users;
    }

    public void setUsers(ArrayList<UsersBean> users) {
        this.users = users;
    }

    public String getGameTime() {
        return gameTime;
    }

    public void setGameTime(String gameTime) {
        this.gameTime = gameTime;
    }

    public String getId() {
        return id == null ? "" : id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCreateDate() {
        return createDate == null ? "" : createDate;
    }

    public void setCreateDate(String createDate) {
        this.createDate = createDate;
    }

    public String getUserId() {
        return userId == null ? "" : userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getTeamName() {
        return teamName == null ? "" : teamName;
    }

    public void setTeamName(String teamName) {
        this.teamName = teamName;
    }

    public String getOrderNumber() {
        return orderNumber == null ? "" : orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }

    public String getShopId() {
        return shopId == null ? "" : shopId;
    }

    public String getPlayDesc() {
        return playDesc;
    }

    public void setPlayDesc(String playDesc) {
        this.playDesc = playDesc;
    }

    public void setShopId(String shopId) {
        this.shopId = shopId;
    }

    public double getRestFee() {
        return restFee;
    }

    public void setRestFee(double restFee) {
        this.restFee = restFee;
    }

    public String getPlayType() {
        return playType == null ? "" : playType;
    }

    public void setPlayType(String playType) {
        this.playType = playType;
    }

    public String getPlayId() {
        return playId == null ? "" : playId;
    }

    public void setPlayId(String playId) {
        this.playId = playId;
    }

    public String getPlayName() {
        return playName == null ? "" : playName;
    }

    public void setPlayName(String playName) {
        this.playName = playName;
    }

    public String getPlayImage() {
        return playImage == null ? "" : playImage;
    }

    public void setPlayImage(String playImage) {
        this.playImage = playImage;
    }

    public int getNeedNum() {
        return needNum;
    }

    public void setNeedNum(int needNum) {
        this.needNum = needNum;
    }

    public String getGamePassword() {
        return gamePassword == null ? "" : gamePassword;
    }

    public void setGamePassword(String gamePassword) {
        this.gamePassword = gamePassword;
    }

    public String getOrderState() {
        return orderState == null ? "" : orderState;
    }

    public void setOrderState(String orderState) {
        this.orderState = orderState;
    }

    public String getOrderStateName() {
        return orderStateName == null ? "" : orderStateName;
    }

    public void setOrderStateName(String orderStateName) {
        this.orderStateName = orderStateName;
    }

    public String getOrderTip() {
        return orderTip == null ? "" : orderTip;
    }

    public void setOrderTip(String orderTip) {
        this.orderTip = orderTip;
    }

    public String getIsFree() {
        return isFree == null ? "" : isFree;
    }

    public void setIsFree(String isFree) {
        this.isFree = isFree;
    }

    public String getMvpUser() {
        return mvpUser == null ? "" : mvpUser;
    }

    public void setMvpUser(String mvpUser) {
        this.mvpUser = mvpUser;
    }

    public String getYqUser() {
        return yqUser == null ? "" : yqUser;
    }

    public void setYqUser(String yqUser) {
        this.yqUser = yqUser;
    }

    public String getZhUser() {
        return zhUser == null ? "" : zhUser;
    }

    public void setZhUser(String zhUser) {
        this.zhUser = zhUser;
    }

    public String getYzUser() {
        return yzUser == null ? "" : yzUser;
    }

    public void setYzUser(String yzUser) {
        this.yzUser = yzUser;
    }

    public int getIsSetRest() {
        return isSetRest;
    }

    public void setIsSetRest(int isSetRest) {
        this.isSetRest = isSetRest;
    }

    public String getEmchatId() {
        return emchatId == null ? "" : emchatId;
    }

    public void setEmchatId(String emchatId) {
        this.emchatId = emchatId;
    }

    public String getTypeName() {
        return typeName == null ? "" : typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getCaptainName() {
        return captainName == null ? "" : captainName;
    }

    public void setCaptainName(String captainName) {
        this.captainName = captainName;
    }

    public ShopBean getShop() {
        return shop;
    }

    public void setShop(ShopBean shop) {
        this.shop = shop;
    }

    public int getValidShop() {
        return validShop;
    }

    public void setValidShop(int validShop) {
        this.validShop = validShop;
    }

    public int getIsRestMoney() {
        return isRestMoney;
    }

    public void setIsRestMoney(int isRestMoney) {
        this.isRestMoney = isRestMoney;
    }

    public int getIsSign() {
        return isSign;
    }

    public void setIsSign(int isSign) {
        this.isSign = isSign;
    }

    public int getResponsePlay() {
        return responsePlay;
    }

    public void setResponsePlay(int responsePlay) {
        this.responsePlay = responsePlay;
    }

    public int getResponseShop() {
        return responseShop;
    }

    public void setResponseShop(int responseShop) {
        this.responseShop = responseShop;
    }

    public int getIsNeedPlay() {
        return isNeedPlay;
    }

    public void setIsNeedPlay(int isNeedPlay) {
        this.isNeedPlay = isNeedPlay;
    }

    public int getPayedNum() {
        return payedNum;
    }

    public void setPayedNum(int payedNum) {
        this.payedNum = payedNum;
    }

    public int getIsCanShopFun() {
        return isCanShopFun;
    }

    public void setIsCanShopFun(int isCanShopFun) {
        this.isCanShopFun = isCanShopFun;
    }

    public static class ShopBean implements Serializable{
        /**
         * id :
         * name :
         * mobile :
         * userType :
         * photo :
         * sex :
         * level :
         * shopName :
         * logo :
         * location :
         */

        private String id;
        private String name;
        private String mobile;
        private String userType;
        private String photo;
        private String sex;
        private String level;
        private String shopName;
        private String logo;
        private String location;

        public String getId() {
            return id == null ? "" : id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getName() {
            return TextUtils.isEmpty(name) ? "暂无商家" : name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getMobile() {
            return mobile == null ? "" : mobile;
        }

        public void setMobile(String mobile) {
            this.mobile = mobile;
        }

        public String getUserType() {
            return userType == null ? "" : userType;
        }

        public void setUserType(String userType) {
            this.userType = userType;
        }

        public String getPhoto() {
            return photo == null ? "" : photo;
        }

        public void setPhoto(String photo) {
            this.photo = photo;
        }

        public String getSex() {
            return sex == null ? "" : sex;
        }

        public void setSex(String sex) {
            this.sex = sex;
        }

        public String getLevel() {
            return level == null ? "" : level;
        }

        public void setLevel(String level) {
            this.level = level;
        }

        public String getShopName() {
            return shopName == null ? "" : shopName;
        }

        public void setShopName(String shopName) {
            this.shopName = shopName;
        }

        public String getLogo() {
            return logo == null ? "" : logo;
        }

        public void setLogo(String logo) {
            this.logo = logo;
        }

        public String getLocation() {
            return TextUtils.isEmpty(location)? "暂无地址" : location;
        }

        public void setLocation(String location) {
            this.location = location;
        }
    }

    public static class UsersBean extends UserInfo implements Serializable {
        /**
         * id : 10112
         * name : 测试号
         * mobile : 17708492266
         * userType : 2
         * photo : https://shandian.hnqinghuang.com/game/play/1.jpg
         * sex : 1
         * level : 1
         * isRestMoney : 0
         * restMoney : 0
         * userRelate : 0
         */


        private int isRestMoney;
        private double restMoney;
        private ArrayList<Integer> playEvaluates = new ArrayList<>();

        public ArrayList<Integer> getPlayEvaluate() {
            return playEvaluates;
        }

        public void addPlayEvaluate(int playEvaluate) {
           this.playEvaluates.add(playEvaluate);
        }

        public int getIsRestMoney() {
            return isRestMoney;
        }

        public void setIsRestMoney(int isRestMoney) {
            this.isRestMoney = isRestMoney;
        }

        public double getRestMoney() {
            return restMoney;
        }

        public void setRestMoney(double restMoney) {
            this.restMoney = restMoney;
        }


    }
}
